package com.xidian.zhiancloud.service.user;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xidian.zhiancloud.dao.syset.UserDetailsMapper;
import com.xidian.zhiancloud.model.syset.UserDetails;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 用户-基本设置
 */
@Service
public class UserDetailsService extends ServiceImpl<UserDetailsMapper, UserDetails> {

    @Autowired
    UserDetailsMapper userDetailsMapper;

    public List<UserDetails> getUserDetailsList(String userId,Long companyId){
        return userDetailsMapper.getUserDetailsList(userId,companyId);
    }

    public int updateUserDetails(String userId,Map<String,Object> in){
        return userDetailsMapper.updateUserDetails(userId,in);
    }

    public int addUserDetails(String userId,Map<String,Object> in){
        return userDetailsMapper.addUserDetails(userId,in);
    }
    
    
}
